package cn.edu.sdjzu.xg23.kcsj01_backend.mapper;

import cn.edu.sdjzu.xg23.kcsj01_backend.entity.Textbook;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface TextbookMapper {
    boolean insert(Textbook textbook);

    void update(Textbook textbook);

    List<Textbook> selectTextbooksByCondition(@Param("textbook") Textbook textbook,
                                              @Param("employeeId") Long employeeId);
    boolean approveTextbook(Textbook textbook);
}


